package com.marvels.financial.loan.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.marvels.financial.loan.dto.McfeReconciliyOwnerDataDTO;

public interface McfeReconciliyOwnerDataDao {
    int deleteByPrimaryKey(Long id);

    int insert(McfeReconciliyOwnerDataDTO record);

    int insertSelective(McfeReconciliyOwnerDataDTO record);

    McfeReconciliyOwnerDataDTO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(McfeReconciliyOwnerDataDTO record);

    int updateByPrimaryKey(McfeReconciliyOwnerDataDTO record);
    
    
    /**
     * 批量插入数据
     * @param list
     * @return
     */
    public int insertBatch(List<McfeReconciliyOwnerDataDTO> list);
    
    
    /**
     * 根据recordId查询己方对账入库数据
     * @param recordId
     * @return
     */
    public McfeReconciliyOwnerDataDTO selectByRecordId(@Param(value="recordId") Integer recordId);
    
    
    
    /**
     * 根据批次号更新为失效状态
     * @param batchId
     * @return
     */
    public int updateByBatchId(@Param(value="batchId") String batchId);
}